/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cmath>
const double EPS=1e-8;
#define Greater(x,y) (((x)-(y))>(EPS))
using namespace std;

int main_66()
{
    int A,B,C,D;
    scanf("%d%d%d%d",&A,&B,&C,&D);
    double formula1=A*asin(sqrt(B)/2);
    double formula2=C*asin(sqrt(D)/2);
    if (Greater(formula1,formula2))
    {
        printf("1\n");
    }
    else if (Greater(formula2,formula1))
    {
        printf("2\n");
    }
    else
    {
        printf("0\n");
    }
	return 0;
}
